home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 66
/
Tiger_Disk_066_19xx_Tiger-Crew-Disk_de_Side_B.d64
/
define keys
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
57 lines
5 ifpeek(767)=2thenpoke767,0:run270
10 poke53281,12:poke53280,14:printchr$(147):poke767,2
20 print"make changes then run again":fori=1to1500:next
30 list 50-255
40 :
50 rem use ( +chr$(34) )to add a quote
60 rem keys f1,f3,f5,f7
70 key$(1)="save"+chr$(34)+"0:"
80 key$(2)="@$0_"
90 key$(3)="find/"
100 key$(4)="list"
110 rem shift with keys f1,f3,f5,f7
120 key$(5)="change@"
130 key$(6)="mon_"
140 key$(7)="drx_"
150 key$(8)="hcopy_"
160 rem logo with keys f1,f3,f5,f7
170 key$(9)="open1,4,1_"
180 key$(10)="open1,4_"
190 key$(11)="cmd1:list"
200 key$(12)="p[210]1:cl[207]1_"
210 rem ctrl with keys f1,f3,f5,f7
220 key$(13)="color12,12,11_"
230 key$(14)="p[210]1,c[200](29)"
240 key$(15)="p[210]1,c[200](27)c[200](27)c[200](56)
250 key$(16)[178]"p(NULL)1,cleft$(27)"[170][199](34)[170]"f"[170][199](34)[170]"cleft$(66)"
260 [142]
270 [134] key$(16):[141]70:a[178].:b[178].:c[178].:[153]"loadcalculating command lengths
280 fori=1to8:a=len(key$(i)):ifa>10thenprint"key$("i" ) is longer than 10":stop
290 ifright$(key$(i),1)<>"_"thenc=c+1
300 b=b+a:next
310 fori=9to16:a=len(key$(i))
320 ifa>40thenprint"key$("i" ) is longer than 40":stop
330 ifright$(key$(i),1)<>"_"thenc=c+1
340 c=c+a:next:ifc+b<255then360
350 print"total characters cannot exceed 254":print"you're"b+c-254" over
360 [153]"ok!":[153]"storing data...":[153]"key#:
370 v=50792:d=50809:x=.:fora=1to16:pokev+a,x:printa
380 fori=1tolen(key$(a)):poked,asc(mid$(key$(a),i,1))
390 d=d+1:x=x+1:next
400 ifa<9thenifpeek(d-1)=95thenpoked-1,13
405 ifa>9thenifpeek(d-1)=95thennext
410 poked,.:d=d+1:x=x+1
420 next
430 s=50430:e=s+636:rem start and end address
450 input"save new copy of keys";y$
455 ify$<>"y"then end
460 print"insert disk with 3 blocks or more into drive 8
465 [133]"filename";f$:f$[178]"0:"[170]f$
470 f1$[178]f$:sp[178][194](53)[170]256[172][194](54)[171][195](f1$)
480 [151]782,sp[173]256:[151]781,sp[171][194](782)[172]256:[151]780,[195](f1$):[158]65469
490 [151]780,2:[151]781,8:[151]782,2:[158]65466
500 [151]253,s[173]256:[151]252,s[171][194](253)[172]256:[151]780,252
510 [151]782,e[173]256:[151]781,e[171][194](782)[172]256:[158]65496
520 [159]1,8,15:[132]1,en,em$,t$,s$:[153]en;em$,t$,s$:[158]65511:[139]en[167]430
530 [153]"done!"